package PrintStream;


import java.io.IOException;
import java.io.PrintStream;

public class PrintStreamTest {
    public static void main(String[] args) throws IOException {
        //PrintStream ps = System.out;
        PrintStream ps02 = new PrintStream("./log.txt");
        System.setOut(ps02);
        byte[] bytes = {88,46,66,33,11};
        ps02.write(bytes);
        ps02.flush();
        ps02.close();

    }
}
